Added comments above functions