This is interesting.
Please write more technical details in a relatively simple language understandable to a layman - I am not a programmer.
And by the way, such a function would be useful in EBSpro. Maybe after contacting the author of EBSPro something can be done in this area?
best regards