Initial parseMessage implementation