Made globals generic (a place to put settings etc)