Forked off tripcount check to be triggered by a separate flag.