Add support for input from pipe