It is amazing that my thrown-together-on-a-drunken-night code is still in use
By the way, it has also been integrated a couple of places, who have adapted the code to their needs.
https://www.pinballlife.com/wmsbally-lookup-database.html
http://www.planetarypinball.com/mm5/merchant.mvc?Screen=PARTS