* Simplify code a bit by breaking the PHI node handling stuff out into a seperate