Added setValues methods which accepts an associated array as input