To monitor status of switches