Adding comments for general understanding.