CRBAlgorithm now working fully