Add cell rotate implementation.