First funckcional version of CQS, ready for test