Add hook_method. (#7)