Finished script with comments.