Reworked classes for permits a bit.