Handle receiving and sending events separately