Hope this now also works when the compiler optimizes