Add depth option

Provide lookup depth option in program.