Updated setUpParams() to handle arrays for data field

Signed-off-by: Stu Goodman <stuart177@gmail.com>