Added comments to explain what's happening