Normalisation code begins.

* Ring detection code work in progress.