Added Support to Detect Errors in Stats File and Output Line Number