Working on debugging loopy stuff