Backport RetainTemp function from 1.1.x branch
Add missing script. How did this get lost?
Merge branch 'dev-1.0.x' into dev-1.1.x

Add missing script file.