Adapt to plugin