Remember to increment i