Tweaked stdin reads.