FIX $record can be DataObject or array now.