Gah, stupid typo that caused an infinite loop.