Added check for run range validity