Improved methods to compare tm structure.