Cleanup temperature code.