Logic for switching files
Switching files works
Cleaning
Cleanup