Refactored, so it can be used in standalone form, too. Bonus point: fed by default via yielded stdin :-)