Refactored to use the new score function interface. The pigeon parser example mostly works now.