Creating the API wrapper