Simplified optimizer.