Control of rotation of instrument