Added comment to helper function