Added output seperate file for each case