Made the ResourceManager class prettier