Added aborted detection.