This might be pretty useful for all kinds of plugins, I think..