As you're cleaning up, you should move away from this string-based approach way of getting fields and UAVOs, which gives runtime errors, and towards the approach of letting the compiler detect errors. Look at how it is done in simulation.cpp in the HiTL plugin. There you will find lots of examples of how you can use the UAVObject manager to have a more natural way of accessing the UAVOs.