Use members instead of global variables

Would result in weird behavior if class was not used as a singleton