Starting adding support for swapping queues on idle. Idle Check added.