Rotate - editing tmpfile