Beginnings of SM parser.