close proximity to Digiovanni. In view of all of the circumstances before it, the district court concluded the written consent was involuntary. Alternatively, the district court seemed to suggest that, even if the written consent was voluntary, it did not purge the taint of the illegal detention.
II
The government challenges the district court’s decision, granting Digiovanni’s motion to suppress. With regard to this challenge, we review the district court’s factual findings for clear error and its legal conclusions de novo. United States v. Perkins, 363 F.3d 317, 320 (4th Cir.2004).
The Fourth Amendment guarantees “[t]he right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures.” U.S. Const, amend. IV. “[T]he underlying command of the Fourth Amendment is always that searches and seizures be reasonable.” Wilson v. Arkansas, 514 U.S. 927, 931, 115 S.Ct. 1914, 131 L.Ed.2d 976 (1995).
When a police officer stops an automobile and detains the occupants briefly, the stop amounts to a seizure within the meaning of the Fourth Amendment. Whren v. United States, 517 U.S. 806, 809-10, 116 S.Ct. 1769, 135 L.Ed.2d 89 (1996); see also United States v. Arvizu, 534 U.S. 266, 273, 122 S.Ct. 744, 151 L.Ed.2d 740 (2002) (noting that the Fourth Amendment’s protection against “unreasonable searches and seizures” extends to “brief investigatory stops of persons or vehicles”). “As a general matter, the decision to stop an automobile is reasonable where the police have probable cause to believe that a traffic violation has occurred.” Whren, 517 U.S. at 810, 116 S.Ct. 1769. Any ulterior motive a police officer may have for making the traffic stop is irrelevant. Id. at 813, 116 S.Ct. 1769; see also Ohio v. Robinette, 519 U.S. 33, 39, 117 S.Ct. 417, 136 L.Ed.2d 347 (1996) (noting that reasonableness under the Fourth Amendment is evaluated objectively).
A traffic stop typically begins when a car “is pulled over for investigation of a traffic violation.”
Arizona v. Johnson, 555 U.S. 323, 129 S.Ct. 781, 788, 172 L.Ed.2d 694 (2009). It typically ends when the police officer has “no further need to control the scene, and inform[s] the driver and passengers they are free to leave.”
Id.Because a traffic stop is more analogous to an investigative detention than a custodial arrest, we treat a traffic stop, whether based on probable cause or reasonable suspicion, under the standard set forth in
Terry v. Ohio, 392 U.S. 1, 88 S.Ct. 1868, 20 L.Ed.2d 889 (1968).
Berkemer v. McCarty, 468 U.S. 420, 439,104 S.Ct. 3138, 82 L.Ed.2d 317 (1984);
Pennsylvania v. Mimms, 434 U.S. 106, 109, 98 S.Ct. 330, 54 L.Ed.2d 331 (1977)
(per curiam);
United States v. Rusher, 966 F.2d 868, 875 (4th Cir.1992).
Pursuant to Terry, we analyze the propriety of a traffic stop on two fronts. First, we analyze whether the police officer’s action was justified at its inception. Rusher, 966 F.2d at 875. Second, we analyze whether the police officer’s subsequent actions were reasonably related in scope to the circumstances that justified the stop. Id.
With regard to Tory’s first prong, there is no dispute that the traffic stop in this case, at its inception, was justified. See Md.Code Ann., Transp. art. § 21-310(a) (“The driver of a motor vehicle may not follow another vehicle more closely than is reasonable and prudent, having due regard for the speed of the other vehicle and of the traffic on and the condition of the highway.”); see also United States v.