Expose queue.peek() for use in instrumentation.
Cosmetic cleanup.