Added support for Input Stream