Hello @cmarchan,
Thank you for your reply man. In the meantime I was trying the following topic and it seems to be working: How to achieve Unique, Sequential Numbers Reliably? - #57 by morgan
I think it´s more clean and easy at least for me, hehe.
Thank you so much for your time man .
Have a nice day.