Debugged message queue subsystem, now the program prints out the stubbed messages