Seems working !

Limitations : 

Ripple Phi variables to Phi ?
UpdateMaster and ripplePhivaiableTest function !