Change format class to singleton to handle all global variables