Avoid use of tempfile external utility.