I just added the code to this script so I don't lose it.
Merge details
mentioned in commit 4725000e
merged