Updated the uninstall function