Scrubbed version of my final script that I created for PIXLEE