Updated the hook name argument in the hookfn function