@jvazquez-r7 you have written the main part of the module that I have used as the template.