Using stream adapter