a bad case of ":=" vs. "=" (that the compiler didn't catch)
Added --wait to streamRecords, wait n seconds when looping if there are no records