Updating error codes
Converting consent table from event to accept/written format