Added handlers, API implementation.