Simplified the API.