Move some to_i around
Make it so that alert_after = 0 is different from alert_after > 0
Wrap lines, format strings