Add writing range_overlap into a file for testing