Added input Stream, Changed name of function