Added comments to two functions.