Added --max-depth option