Replaced .Peek >= 0 with .EndOfStream