Making Event serializable