Added the Phi implementation.
Deleted the old implementations.