Upgraded MATE molecule script