Modifying to_record to support multiple payments