Predfix

This should do the trick. Predictions done (but unstable if run multiple times). R works with travis.