Add serializing methods and use them in Push/Pull