Add support for ranges.
Merge pull request #50 from peelonet/ranges

Add support for ranges.