Initial parsing of messages