Parse incomming messages