Further amendments to the CO_KS transform by @mkm1849