Changed update_heaters() to take state. Built loop().