Added loop protection for runner.