My code appears to be working! Woo-hoo!!
(Why is my emotional state so tightly coupled to the state of my code? I've been grumpy all day because my code wasn't working right, but now that I fixed the problem, I'm really happy. Gotta get less emotionally invested in my work I guess...)