Added functionality for all values in array.