Add custom preferences and delete useless files