Generating stack