backport title function.
Merge branch '4.0'