CL: initial implementation of twiddles