Changed resource manager

Changed resource manager to take hash keys instead of strings