Make codeOutput and friends return the filename that they have created