Added the ability to use ranges