A U.S. Secret Service Uniformed Division officer and his dog stand watch at the north fence of the White House, along Pennsylvania Ave. Monday. REUTERS/Larry Downing

The man who jumped the White House fence and ran into the White House Friday night was storing more than 800 rounds of ammunition, two hatchets and a machete in his car, prosecutors alleged during a federal court hearing Monday. The car was parked just blocks from the White House.

Prosecutor David Mudd also said Omar Gonzalez, 42, had been arrested in Viriginia July 19. Police said they found a sniper rifle, a sawed off shotgun and a map of Washington in his car. The White House and the Masonic Temple in Alexandria, Virginia, were circled on the map, Mudd said.

Mudd said Gonzalez had a “preoccupation with the White House and accumulation of a large amount of ammunition in apparently a short period of time [and] represented a danger to the president.” At the hearing, Gonzalez was deemed a flight risk and ordered detained until his next hearing Oct. 1.

Gonzalez is an Army veteran who served from 1997 to 2003 and then again from 2005 to 2102 when he retired because of a disability, the Army said.

The incident Friday led to an evacuation of the White House even though President Obama and his family had left for Camp David. The Secret Service had beefed up security surrounding the perimeter of the White House Monday.