Fix message parsing bug.
Add debugging method that prints store contents.