Added some functions to the class creator.