Could you please edit your last post above and add the required formatting to your code, as detailed in this post - How to share code or flow json so that I am able to import it OK (it won't currently import).
If you update it, I'll take a look this evening.