Added queue and visibleQueue.