you might take a look at this code:|
It might give you some ideas, however it hasn’t been maintained in the last 5 years