Adapted patr1ckm's code for reading estimation warnings and errors. Initial working solution.