Basic implementation of communications protocol