Added support for ranges, fixes #3