Changing variable scopeing