Added T for phase determination p calculations