Implemented basic api calls