Working on initial version of plugin system.