Support reading from stdin.