Added comment to better explain what code does.