Added print-dup method for serialization