Pass the array to the function.