Fixed bug with message parsing, and updated example.