New: optimizecashflow