Updated requireModule to loadModule()