Added comment to function