Commented the code as part of code review.