API methods and implementation.