Added comments to new functions