Adds range support
Merge pull request #240 from Jaxan/range

Range support #240