Changed postfix increment to prefix increment