Added explanatory comments.