Allow using callback functions that don't use kwargs.