Adding comments to describe the functions.