Added loading for resources.