Modifies depth check