Corrections to the algorithm
New algorithm for CST control
Comment callbacks