- Added the checking for line completion
- Added the udpate of the metrics values when a line is completed