Make sure the file gets written