~ Many changes: add message handling skeleton.