Fixed for mesh-type DST representation. Sort-of working.