Added comment labels to group functions by purpose