Added line counter reset