Update logic

Addet inverter, updated timer.