Refactored the resource managers.
Updated to return the value.