Improved parallel mixing script