Lets move this function into a different file - it is only called once unless the merchant re-installs the plugin.