Dear Alex83UK, Could you share the source code for reference?
my email: dominhson.vtv@gmail.com