Remove unncessary counter var