Was an infinite loop! Needed to create new Node instances rather than store references to the original.