Generating a resource