The thing I found was the solution. It was actually simpler than expected. Just a bit hard to find because of the obfuscation.