Wrote the basics of the API.