We've already calculated startInfo and endInfo at line 419 and 421. No need to do it here too.