Pass max average depth param along properly.