Added processing of queue