Optimization with live preview