Adds getting and setting of cell state