Cleaning comms.c