This can be written in one line. Avoiding the need for the `success` temporary.