Working MSC with convergence check

Working MSC with convergence check. It is right now working for three
layers, viz., xTranslation, yTranslation, and Rotation.