Difference in output with 2 different A.I. scripts