loop detection sort of works now. Keep going.