Added rotating output directory