Another small optimisation to problem023