Updated plugin API and adjusted plugins.