Some basic framework on the API.