Implemented API methods.