Added directory search and moved distack to dstack.