Add model to track and send errors