Added code for main temperature