Remove debuging information and clean up old functions.