Corrections made to script