Use appropriate methods in exec plugin.