Also use quality of mass traces
added writeCCs()