Define i at the top, C89 compatibility