Adds script implementing r1ch's blog post