Add `args' argument to "onrecord" callback, so that it correctly