Amanda Bynes, 27, agreed Friday to see a counselor twice a week for the next six months to get charges of her allegedly throwing a marijuana bong out the window of her apartment in New York City last May dismissed, the New York Daily News reports.
"I understand that after a period of six months has expired, if I have complied with the conditions set forth below, the charges will be dismissed," Bynes reportedly stated in an affidavit signed Dec. 19.
Pics: Amanda Bynes' Most Bizarre Twitpics
"This is an important step in her rehabilitation," Bynes' lawyer, Gerald Shargel, said. "I am optimistic about her future and pleased with the result."
Bynes was taken into custody last May after police were called to her apartment building and allegedly saw the actress dispose of a bong out her window. She was charged with Reckless Endangerment in the Second Degree, Attempted Tampering with Physical Evidence and Unlawful Possession Of Marijuana.
Bynes was released from a Malibu rehabilitation facility on December 5, 2013, after about five months of treatment. She was forcibly hospitalized back in July after she started a fire in a driveway.
Related: Amanda Bynes Leaves Treatment Center
The actress' mother Lynn remains in indefinite control over Bynes' finances and well-being.
Related stories on ETonline.com:Shia LaBeouf Retires From 'All Public Life'Bieber a Suspect in Egging of Neighbor's House