Simplify the interface of the API class.