Removed all but one global variable.
The last one will be removed with the next commit