Output function added