Controlling the connectivity state