Changed in read for pull#7

@John: A lot changed after you sent the pull request so resolving conflicts was hard. I have done the changed which you have suggested here. 

Please have a look. Thanks.
@awholegunch : I don't see a difference here. Can you point it  out ?