Replaced +=1 with ++