Added temp result writer