Change 107 to FOR I=0 to REC and 110 to VSYNC 1