Added forced sync in saveFile