Organized global variables into a class for easier restarting