Messaging Functional

It is not yet complete, though. Still needs some polishing.