Hope you recover fully and Take Care.
Also, It would probably help you to add set routes (not RO oriented but rather some form of Action oriented routes) or something else to cut down on variables as soon as possible because it makes the writing much simpler cuz they will start stacking up exponentially. Again, this is just a suggestion.