Finish array logic