Swap arrays not needed as next is only temporarily used