Modified setup and commit methods so that they could analyze every cell
selected.