Backport RetainTemp function from 1.1.x branch