Changed TryPeek to handle race condition with Dequeue.