Move location outside of loop to prevent constant redefinement.
Actually execute the hook.