ZHS code obtained from Jaime. I want a backup so I can try to modify it as needed.