Added a simple API.