Changed hard coded temp file path to use Path.GetTempPath