Thanks, that sounds like what I need, but unfortunately I would have to learn C++ to even do the first point on your list. Meanwhile I’ve found a solution which is fairly straight forward, although it requires an additional file. I’ll post it as an answer.