Added transferrable serialize function