From https://script.google.com/macros/d/1huetXoP4QFez9nl4CFUgbuOQoEPug142ZaDYqQ8ss5Jrg0sIdARCBfnx/edit?template=site&usp=drive_web