Modified tag generation just for functions