There was a typo on line 81.

Assumed that fixed everything, and attempted TODO from line 95.