Update grd to support directory filtering