Update code to change increment operator