Add argument of baseDirectory