Editted main and secondary comments to the two functions.