Output function added.