Implemented basic message passing. Fixed com's segfault.