Generating a scaffold