DETROIT (AP) — A man told investigators that he was making $2,000 a day selling marijuana from a vending machine attached to his Detroit home, federal agents said.

The man, who has a felony record, was arrested last week and charged with illegally possessing guns. The FBI said he explained how he made a living when they arrived in March with a search warrant.

READ MORE: 'Ride For Equity’ Detroit To Mackinaw City Raises Equitable Funding For Black Business Awareness

The man “owned and operated the marijuana vending machine attached to the residence for four years, making approximately $2,000 per day,” an agent said in a court filing.

READ MORE: Wayne County Man Wins $1M On Scratch Off Lottery Ticket

Agents were aware of the machine because they had made purchases to collect evidence in February and March.

Agents discovered 18 firearms throughout the house, dozens of rounds of ammunition and several pounds of suspected marijuana. The man was released on bond by a federal magistrate judge.

MORE NEWS: No Charges Filed Against Roseville Police Officer In Fatal Shooting Of Man With Knife

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