Moved mod ID initialization to the constructor