Added new robust range routine