Refactored last to read as 'dequeue'