Checking step, diagnostic routine at end of each scan