NORFOLK, Va. (WVEC) -- A Suffolk man pleaded guilty on Tuesday for flying a plane without a proper pilot's license.

Robery R. Gray Jr., 55, was flying a 1972 Piper Aircraft in July when he crashed it while attempting to land at the Umphlett Airstrip in Suffolk.

Gray had an expired student pilot license, and his medical conditions prevented him from obtaining the required medical clearance to fly. Gray's prosthetic leg did more than just prevent him from getting a pilots license.

When the plane was crash landing his prosthetic leg got stuck under the plane's brake and caused it to spin out on landing.

According to court documents, after initially denying he was the pilot, Gray admitted he had flown the plane. He told investigators he had no business flying the plane because he can barely drive a car.

Gray apparently flew planes in October 2016 and June 2017, despite FAA officials specifically informing him on each occasion that he was not permitted to fly.

Gray pleaded guilty to serving as an airman without a certificate and faces a maximum penalty of three years in prison. He will be sentenced on March 23, 2018.