Made depth a const