Add basic functionality for loading a resource.