Fix bug where messages were sometimes submitted multiple times
Yet another version if MsgLiner
Make return value explicit