Corrected syntax of batches_by_range and rach_by_range