Add attachConsole option.