Added in comments to provide information on code.