Use depth parameter, fixes issue #12
Merge pull request #12 from umpirsky/fix/issue-12

Support for the "depth" option