Updating: handling inner functions inside function templates.