Gegy has updated some stuff, and his GitHub app is a bit zonked, so here is his code!