There should be some complementary code to serialize data when sending.