Added localDir param