Working for multi directories!