Added tty flag