Getting previous read data instead of current one

In reply to Subrahmanyam:

I made a few useful modifications.
See he write_read_sequence.