Main Source Code for the plugin.