Added missing leave methods and set the class properly.