Debugging - intermittent end of stream.