[plugins] Changing external to native.

I also made the code a little prettier.. Both simpler to read, and
shorter.