WIP optimizer