I can add a one liner for what I think CCA (or should be). I don't understand yet the code for PLS (hence, I don't understand the code here for CCA - but I understand what CCA *should* be.). I can try, but when I asked around for help on this, most developpers at the sprint don't seem to know that module, and I'm afraid I'll write something plain wrong.