Made objects serializable.