Use single if statement in SMCGetTemp instead of nesting 3