Add preliminary tasks for minimization

Preliminary tasks were missing from minimization, which meant that header of output files were not printed, among other things.