Two of the three Auburn softball players who were arrested in April on marijuana-related charged agreed to a diversion program on Thursday.

Makayla Martin and Brittany Maresette both appeared in court in Auburn on Thursday afternoon and agreed to the city's diversion program, which includes counseling and community service. The two were arrested on April 20, along with shortstop Haley Fagan, for second-degree possession of marijuana and possession of drug paraphernalia, both of which are misdemeanors in the state of Alabama.

Martin and Maresette, who appeared in court with their mothers and were represented by Zach Alsobrook, had the paraphernalia charges dismissed before agreeing to the diversion program.

As part of the agreement, both were ordered to pay $251 in court fees, as well as perform 30 hours of community service and attend counseling. Martin plans to perform her community service back home in San Diego before returning for the fall semester in August, while Maresette will perform her community service in her hometown of Snellville, Ga.

Upon completion of the diversion program, both will have the charge of marijuana possession dismissed. Fagan is set to appear in court in August.

"I'm just glad to get it over with and put it behind me," Martin told AL.com upon leaving the courthouse.

It was a sentiment shared by her mother, Melinda Martin, who called the whole situation a "huge misunderstanding" and said her daughter was in the "wrong place at the wrong time."

Martin, Maresette and Fagan were arrested in the early hours of April 20 at an address on E. Samford Ave. in Auburn. The trio was subsequently suspended indefinitely by Auburn coach Clint Myers and issued apologies through social media eight days later.

Their suspensions were lifted after six games, when Martin and Fagan returned to the starting lineup against Mississippi State on April 30, with Maresette available off the bench for the Tigers.