Add Serializable interface on the Factory.