TODOs for 1.0: * Reintroduce some of the removed debug output * Test the whole code again