Bugfix: read from stdin before we check whether we got somem entries...