WASHINGTON (AP) — A Bay Area man charged with jumping the White House fence late Friday evening will be allowed to remain free while awaiting trial, though he’ll have to wear a GPS monitor.

At a hearing in federal court in Washington on Monday, 26-year-old Jonathan Tuan Tran of Milpitas, California, was ordered to stay within 100 miles of his hometown except while traveling to court in Washington. He must stay away from the White House and undergo a mental health evaluation.

READ MORE: 49ers Fans Look to Make Noise, Boost Team at NFC Championship Game

Tran answered a few questions in court and was assigned a public defender.

READ MORE: Solo Crash Friday Night Closes Moraga Road, Cuts Power to Hundreds

He’s charged with entering restricted grounds while carrying a dangerous weapon. He faces up to 10 years in prison. Court records allege Tran was carrying two cans of Mace when arrested.

He’s scheduled to return to court April 13.

MORE NEWS: S.F. Supervisors Set to Designate Casa Sanchez Bldg. in Mission District a Historical Landmark

© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.