Back end: Implemented the message queue. Resolves #113.