Use phaseList and phaseArray