Mostly for my own purposes, but feel free to use it if you wish!
Much inspiration from: https://scratch.mit.edu/projects/164028530