Added code for the COMM communication. It is untested at the moment