Optimize transitions