Prediction algorithm for bonfires works, hooray for regexes