Rewrote ccTriCubed