Add support for rotations.