added critNumber check.  Fixed an issue with scram crashing after long periods of time.