Added getBetweenN() method.