v0.04 - added some safety checks on the number of CCCP iterations