Made Media types Serializable