Adding parser to bayes