Created EventMessage type to simplify sending and receiving data