Rewrote joint_old_new_cases to be faster and not use mclapply