Corrections to the script