Understood and added explanation inStream function