Updated idle monitor to use context switches.