Optimize code and delete unused files.