Correctly pass arrays to functions.