Implemented api calls