Adding support for piped input