Add query dirs.