Line 25: You should never use debugprofilestart()! (x10) Line 152: attempt to perform arithmetic on local 'lastmem' (a nil value) (x7)