Added comment for logic