Added output generation equality check