Added more explanatory comments