Changed 'most' of the variable code to work withe new instruction 'stloc' and 'ldloc'