Made Connection Serializable.