Add some of EE3's utility code into my mod