Enciper function of substitution mostly finished.