Added example with rotation optimization.