Proved one more function for cdd.