Updated the MessageReader sample