Copied the script.

I don't remember where is it from. Needs a reference, sorry author!