Nearly finished second part of the script.