Implement output generation