Random utils and classes to help with plugins.