Register write event in add_message(), eliminate busy loop in backend().
Register LPC event when appropriate, eliminate another busy loop in backend().