Allow specifying depth.