Fixed reading in lines from the buffer and removed extra stat.