Added support for STDIN piping.