Add support for callback objects.