Change to QueueState instead of InsertState