Add a resource.