Message result refactoring.
Refactored messaging system.