Made new functions for api calls