Add rewriteConsole option.