Insane optimization & EE3 compat