Initial commit for the phi engine.