Made payload interface and classes Serializable.