Add detailed comments for ease of understanding code.
Add detailed comments for ease of understanding code.