Added functions to API