Added discrete rotation.