Added ResourcesManager class to handle external resources.