Added more comments to code for what changed.