New command parser, more consistent message handling