Added in ability to restart optimizations