Register handler.