Debugging history based wrapper for ngram lira... more bugs left