Adding comments for readability and understanding.