I think this never used, and now has a lot of incomprehensible code since Claude got it's hands on it. I suggest to remove this.