Added script comments to explain what the script does.