Added first draft of the API.