Refactoring. Resource references consolidated to ResourceManager.