Starting to add comms protocol functions