Implement parsing messages