0.5 Fixed clobbering of global variables