Hueristics for dynamically finding looping query. Use -DDynamicLoop