Analysis of CUBIC