Added skeleton of parse message function