Added rudimentary reliable message passing function.