Made some parameters const and shortened the ResourceManager