Added support for variable numbers of value arguments for the callback.