Added isatty check
Limited interval for non-tty stderr output