Introduce a new function to change k_factors in xml input files.
Minimal cycle tests are functioning.