Add iterative_source_detect script