. And the code of the script function itself: