Added basic API functions to the class.