Implemented new sendMessage core function.
Updated TODOs