Rewritten the plugin. This is in alpha state.