Finish temperature part, still few things to fix probably but most of it is here.