Added comments above functions.