Implemented lock statistics, fixed non-causal spans, error in processing does not crash everything but provides more verbose problem description.