Added max and min temp rules + when in F context