Added range functionality.