Made this type Serializable (is exchanged between frontend and backend).