CHanges to allow distance to nearest exon to be computed correctly