FIX: output check logic.