Moved MPI and serial specific PTM code to MPIPTM and SerialPTM.