Added comments to clarify function groups