Split up submission script generation