Partial and untested implementation of the plug-in.