Remove debug output and fix control routine output.