This is the migrated code from one of my code dumps

The code is useless in this state, can only be used in a specific case, more work needs to be done