Add output judge