unfortunately this is a bit complicated to discuss, and the code is quite large so I can\'t copy it all in, I\'m also unsure if I can exactly share the library I\'m using.