Changed an ID into a class. Reduced global variable pollution.