Add output checking.