More stats and a bug fix for line reading