Refactoring and downtimes API

`%s` and `format` &