Entity serialization working