Updated script and fixed typos.