Added some comments to the Functions