Add a yield so the "Starting writing" message will make it to the status bar so the user knows what's going on.