A judge released a man who was arrested for having guns at Trump International Hotel Wednesday night, WUSA9's Bruce Leshan reports.

The judge order for 49-year-old Bryan Moles to be released on the condition that he stay away from White House and Trump Hotel. He is also ordered to make no effort to get a hold of any of the 20 or more guns he still has in his Pennsylvania home.

RELATED: Man arrested at DC Trump hotel had 2 guns, was a doctor

Police responded to the hotel around 1:50 a.m. after they received a tip from the Pennsylvania Police Department about an armed man heading to the Trump Hotel. When they arrived, they found two guns in Moles’ car.

He was arrested and charged with carrying a pistol without a license outside home or business.

Federal prosecutors failed to bring D.C. gun charges against Moles. On Thursday, a judge was deciding if he can hold him on federal charges.

Investigators say Moles told them he was taking anti-psychotic medicine for suicide urges.

The judge ordered Moles to stay in a D.C. hotel overnight and appear before federal judge on Friday.

Moles is an emergency room doctor from Edinboro, Penn.