Started to flesh out the structure of the API calls.