Updated range functionality.