This thing has functions? Oh man. Do you really need to declare I as a VAR inside the function though? Seems to work without it for me.