Main part of queue