Added hook loader for modules