Changed: Better plugin loading function.