Skeleton of output function