Use tracking_id to determine the max_id