Replaced comments with functions