Add model to track and send errors

This is good.