Echo defined vars within loop - with memory at two seperate points