I should stop using global variables