Moved bootstrapping of plugin to plugins_loaded hook