Changed ResourceManager class into a module.