For loops with i < 1000 now work. Local variables have also been implemented