Retructured Message function

Restructured message relaying function, centralizing the message access.