Add transient attributes for serialization