Updated the code to always generate Stream.peek instead of Stream.npeek.