Performance improvements and deleted useless files.