Implement output generating functions