Refactored resources and resource loading. Added reload method