I can't believe I forgot to include a link to the actual script in the
demo.