Added looping vs set based