Did minor clean up for the script

Did minor clean up for the script