Clean version of the script with documentation.