Added checks for the global chi2 and tm value.
Authored by: bugman 2008-10-12
Parent: [r7656]
Child: [r7658]