Implemented directory search.