Reworked the ResourceSystem

Changed the way the ResourceSystem works