ChatGPT is cool. I was able to copy paste code bits from Arduino to the ChatGPT console window describing the expected behaviour and one of the logical solutions was actually the solution to the problem. Unsigned integers :)