Rewrote JPLua plugin iteration. Fixes #150