Added a range function, which might be used.