Implemented the API methods