Save file before running