Rewrite parseMessage