First draft of API.