Added comments to the functions.