Adding main parser method