rewriteoutput: Fixed the disaster
debug: Much better now