Initial messaging framework. Not tested.