Update MainPlugin.php