Respect R_star output preferences
Optimizations (remove redundant range checks)