Added a resource loader.