Revised so that plugin will run even without a config file.