Tweaking code to try to figure out what's going wrong.
Yay, it works.