Turn spec into a loop