Adds native record encoding