Added support for switch idle state