Making all the API calls work.