Added splitRangeAt function