I have no idea how optimal this is lol. Part 1 of encode: https://youtu.be/F-8RiMqG4Ts Part 2 of encode: https://youtu.be/MceVwU2ESf8