I think I might have made a mistake while measuring the execution time of this the first time round, it doesn’t seem to be that slow after all. But it would still be nice to have a more readable way of doing the same thing.