Remove unused registerPlugins function
Remove unused imports
Fix the save system