I added my own version. It is not faster, but it is less code