Create new function copy Override Template. Fixes #4460, Fixes #4723.