Fixed clearmem. It actually works now.