Updated to use resource manager.