Add support for array callback.