The gen phi and gen cur routines have been created and writtten into code, they are untested currently