Generating scaffolds