Template function added.