Add ability to specify maximum dump depth.