Added a hook to check if the hook needs to be forked at all