You should have asked Xor-El to integrate it. I have no use for such copy code. Impolite in the open source world. also check the license and
do not do that ever again. Xor-El's code is a game changer, your code looks like amateure code (or poor AI) , which it is....
Simply
don't touch real code when you do not even understand the heritage and certainly could not write it yourself.
( >:(This time I am really angry, not just using emoticons. Bad practice.
let's evaluate:
- Xor-El, the man with the unpronounceable name himself, wrote perfect code.
- He is a member of this forum
- You used AI to improve on his code, not YOUR code, you do not even understand his code
- Don't publish such code here please, first consult the author
- Xor-El is a forum member
Be aware if I see more of that cow dung you will get more

I know that many of us think the same.