More refactoring, put temperatures in an array, introduced freezing bug