A few changes that didn't work (commented out) and a note on the global
variable initialisation order problem