Add support for zero-argument callbacks.