Add stream in and stream out