Echo defined vars within loop - breaking when done