Added cookie and emittng. Need to find a way to broadcast.