Using local copy of the array