Implement plugin and tests.