Changed how arrays are generated to make it compatible with Marketo