- Making Invariants serializables due to the new way of serialize.