Added some features to API.