Added directory option