A Maryland man arrested after scaling a White House fence last year has pleaded guilty in connection with the case.

Dominic Adesanya of Bel Air, Maryland, pleaded guilty Friday in federal court to a charge of entering or remaining in a restricted building or grounds.

The plea agreement calls for Adesanya, who was arrested Oct. 22, to complete one year of supervised release. Sentencing was set for July 2.

Adesanya's attorney, Jonathan Jeffress, says his client was suffering from schizophrenia but is now doing well.

Adesanya is still being held in two other cases. He has a previous unlawful entry charge at the White House on July 27 and allegedly assaulted police officers while trying to enter the U.S. Treasury building July 30.