Added code for LastThresh and ExternalFields plots.