Rewrote most of the plugins to the new code structure.