Altered the sendmessage sub to check for the existence of an odch
function to ensure it does not error on testing and to ensure users can
still send data_to_all messages