Further improvements to the comparison script
Improve comparison