ResourceManager implemented(not tested)