Avoid possibly changing the user's input array.