Added option to set params as array