Minor tweaks

* Add missing static keyword
* Hook in on plugins_loaded