Added a message parser (no functions for handling message types yet)