Updating template functions.