Added depth limit to user hook loader.