Implemented distinct streams for read and write