Setting of array elements