Add support for stdin.