Generating dist