TPMD algorithm development