Fixed cell Ids

The cell counter is now exposed and is automatically set to '-1' for
each new iteration