Implemented some of the class functionality.