Implemented read and save using pipeline