Base plugin. Includes tests.