Improvements to the plugin API.