Added queue ctl logic.