Updated range function for extended functionality. Fixed bug in conj.