Rewrote plugin loading (it isn't even its final form!)