Added small tty check, to prevent spam.