Adding loci_selector for porting. Currently non-functional.