Fix broken optimizing command

* add time to log output