Updated all. Fixed bug of out and instream.