[Edit] Fixed dequeue return value