Create loopthrougharray