Add basic first pass at API.