Added isConsole and isWeb.