Added check for duplicate depths in thermo.depth