ROCKLAND, Maine — A 30-year-old Rockland man who was found to be manufacturing a hallucinogenic drug at a city home more than two years ago will be spending no more time behind bars.

Aaron J. Witt successfully completed a one-year deferred disposition and was sentenced Wednesday in Knox County Superior Court. Justice Jeffrey Hjelm sentenced Witt to four years in jail with all but the two months he already served suspended. Witt was also placed on probation for two years. He was also fined $400.

Witt has already paid restitution of $3,709 to the state for the cost of sending a Maine Department of Public Safety team to inspect the home after it was found that he was making drugs in the house. He also performed 100 hours of community service during the past year.

The sentence agreement had been worked out between defense attorney John Markham and the Maine Attorney General’s Office.

Witt had originally been charged with aggravated trafficking of dimethyltryptamine because the James Street house was within 1,000 feet of a school. The plea agreement reduced the charge to a less serious trafficking offense.

Witt was arrested on Dec. 30, 2011, at the James Street house he rented when he called police to report that he suspected someone had broken into the residence. When officers arrived, they found glassware and crushed pills in the kitchen and suspected Witt was manufacturing the psychedelic drug dimethyltryptamine, also known as DMT.

The Maine Department of Public Safety’s lab team responded and closed off the house and part of the street as members in protective suits scoured the building and removed suspected drug making items.