Implemented a plugin system.