Modified all methods to be class methods.