Implement handlers.