Updated to new communication protocol