Addressed the end line error of the script.