Since this function comes from Damiano's input, I would add a link to where to find the original specs. One could attach Damiano's script to the original bug and put in the code a link to the bug in a comment.