Add some comments to the functions