Added maxdepth and quiet options