Added a TerminalFactory.