Added appropriate comments to the new functions.