@korttoma, thanks for the advice. Now I understand better. I guess I will need to come up with version 2 for my gateway.
I did go through the articles shared by @sundberg84 but it is too much reading for me. I find it hard for me to understand them base on my level of knowledge. Your summary helps me a lot.