Output function.