Added __slots__ to the necessary subclasses