Added very basic cleanup of intermediate files