Changing the way undefined modules and variables are initialized