Implemented getRangeToPosition