Added more comments to code from previous commit.