Building loops in Modeller