API methods, change to instance methods from class methods.