Added a method for serialization