Add hook into handler.