Finish implementation of plugin.