Added extra argument to callback functions: the record/element identifier.