Basically I wanted to test my approach, and if it worked, propose the fix to the vendor. The code was written 5 years ago and looks poorly maintained and poorly understood. It has massive sections of code commented out with lines showing stuff like
// TODO: figure out what this did