Added more methods to the api.