Changed list to queue