Main

Basically the main chunk of the plugin.