Make serialization works