Script to generate all output