Using ipairs instead of pairs.