Use tempname()
Place cursor at the bottom before appending result