Modified structural comparison script