Added update function for devices and group association.