Oops - this was causing output to be an array instead of a string