Production version of the script.