Tweaked NBSInputStream a bit...