Added better handler abstraction and command to message processor.