Added initial plugin upgrade functionality