Implementing simple stream cloning