Added cubic angle detector.