Took me a while to figure out what this is doing, but that's cool though