Fixed contact ID calculation to use section A instead of section bundle. Added write to file needed for debug