Enable to use writeObject().