Adding in the initial code for the API.