Fix broken optimizing command

See #331

* add time to log output