Updated the plugin to use the new configuration.

~70% of the API is deprecated now.