Adjust if statements for acquiring old_range