by rlmumford: Make sure hook implementation has the right arguments.