Added support for continuous rotation