Hunted down some output bugs. Hope it can be safely piped into Maple now.