Increased flexibility for IMCMessage.

Implements and closes #423