Rewrote nearly the entirely plugin. Now version 2.0