Script automated to generate results in proper folders