Add model to track and send errors

Forget previous comment, I mixed up name with key.