Creating multiple junctions in a loop