Added range functionality