Ah, I see second loop. Maybe then add param to not call this twice?