Two problems need optimization