Phi takes list instead of va list
Added phiable analysation and optimisation