Self-explanatory title.
Credit to @npetters, who wrote the version in master.
FYI: @tstreble, @aroepe.